package com.lwlean.test.utils;

/**
 * Created by lean on 16-12-6.
 */
public class NumberUtil {

    /**
     * 判断一个object是否是纯数字
     * @param obj
     * @return
     */
    public static boolean isNumber(Object obj){
        final String numStr = obj.toString();
        final boolean flag = numStr.matches("[0-9]+");
        return flag;
    }

}
